package com.example.springfeature.runner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@Order(value = 2)
public class SecondLoader implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        loadSysParams();
    }
    public void loadSysParams(){
        log.info("【系统参数2】加载中...");

        log.info("【系统参数3】加载完成...");
    }

}
